<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="Keywords" Content="婚礼包办,婚礼策划，爱情,蜜月,婚礼用品">
		<meta name="Description" Content="为用户提供婚礼策划、婚车租赁、婚纱摄影、蜜月旅行以及周边服务商品的商城，为用户提供一站式解决方案，解决用户在婚礼各个环节中遇到的困难。">
		<link rel="shortcut icon" type="image/x-icon" href="../img/static/shemher.ico" media="screen" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>相合网_高品质婚礼服务</title>
		<link rel="stylesheet" type="text/css" href="../css/mod/base.css" />
		<link rel="stylesheet" type="text/css" href="../css/mod/header.css" />
		<link rel="stylesheet" type="text/css" href="../css/mod/footer.css" />
		<link rel="stylesheet" type="text/css" href="../css/page/hotel.css" />
	</head>

	<body>
		<!--S头部-->
		<div class="header">
		</div>
		<!--E头部-->
		<div class="wrap">
			<!--S面包屑导航	-->
			<div class="crumb wrap">
				<a href="" class="mod-info">首页 > </a>
				<a href="" class="mod-info"> 婚礼用品 ></a>
				<a href="" class="mod-info"> 婚纱礼服 ></a>
				<a href="" class="mod-info"> 新款 新郎结婚西装 英伦礼服 商务正装 ></a>
			</div>
			<!--E面包屑导航-->
			<!--S婚礼用品-->
			<div class="goods clearfix">
				<div class="goods-left fl">
					<div class="goods-left-bigimg">
						<img src="../img/online/350x350.png" />
					</div>
					<div class="goods-left-imgs mt20">
						<ul>
							<li><img src="http://temp.im/80x80/4CD964/fff" /></li>
							<li><img src="http://temp.im/80x80/4CD964/fff" /></li>
							<li><img src="http://temp.im/80x80/4CD964/fff" /></li>
							<li><img src="http://temp.im/80x80/4CD964/fff" /></li>
						</ul>
					</div>
				</div>
				<div class="goods-right fr">
					<h1 class="mod-h1">新款 新郎结婚西装 英伦礼服 商务正装</h1>
					<div class="price-wrap mt30">
						<span class="mod-hightlight">相合价 : </span><span class="mod-bigprice">&yen;499</span> <span class="mod-intro ml20">市场价 : <del>&yen;668</del></span>
					</div>
					<div class="goods-detail-wrap mod-info mt30">
						<dl>
							<dt>商品评星 ：</dt>
							<dd><span class="mod-star"><i></i></span><span class="ml20"><span class="mod-hightlight">758</span>人评价</span>
							</dd>
							<dt>颜色款式 ：</dt>
							<dd><span class="goods-style">三件套180A</span> <span class="goods-style">三件套180A</span> <span class="goods-style active">三件套180A</span><span class="goods-style">三件套180A</span> <span class="goods-style">三件套180A</span><span class="goods-style">三件套180A</span> <span class="goods-style">三件套180A</span> <span class="goods-style">三件套180A</span><span class="goods-style">三件套180A</span> <span class="goods-style">三件套180A</span> <span class="goods-style">三件套180A</span> <span class="goods-style">三件套180A</span> <span class="goods-style">三件套180A</span></dd>
							<dt>购买数量 ：</dt>
							<dd>
							<div class="goods-num">
								<a href="javascript:void(0);" class="goods-min">-</a>
								<input type="text" id="input_num" class="" value="1"  maxlength="8"/>
								<a href="javascript:void(0);" class="goods-add">+</a>
								</span>
							</div>
							</dd>
							<dt>配送服务 ：</dt>
							<dd>
								<span>满599包邮 48小时发货</span>
							</dd>
						</dl>
					</div>
					<div class="goods-buy mt30">
						<span class="mod-btn">我要购买</span>
						<span class="mod-btn ml20">加入收藏</span>
						<a href="" class="down-app ml20">下载app，随时随地方购买</a>
					</div>
				</div>
			</div>
			<!--E婚礼用品-->
			
			<!--S类似婚品-->
			<div class="likegoods-wrap mt60">
				<div class="comment-header">
					<h1 class="comment-header-h1">类似婚品</h1>
				</div>
			   <div class="likegoods">
			   	<div class="over-hid">
				   	<ul>
				   		<li>
				   			<img src="http://temp.im/150x150/4CD964/fff"/>
				   			<p class="mod-info">名字名字名字名字名字名字字名字名字名字名字</p>
				   			<p class="mod-price">&yen;326</p>
				   		</li>
				   		<li>
				   			<img src="http://temp.im/150x150/4CD964/fff"/>
				   			<p class="mod-info">名字名字名字名字名字名字字名字名字名字名字</p>
				   			<p class="mod-price">&yen;326</p>
				   		</li>
				   		<li>
				   			<img src="http://temp.im/150x150/4CD964/fff"/>
				   			<p class="mod-info">名字名字名字名字名字名字字名字名字名字名字</p>
				   			<p class="mod-price">&yen;326</p>
				   		</li>
				   		<li>
				   			<img src="http://temp.im/150x150/4CD964/fff"/>
				   			<p class="mod-info">名字名字名字名字名字名字字名字名字名字名字</p>
				   			<p class="mod-price">&yen;326</p>
				   		</li>
				   		<li>
				   			<img src="http://temp.im/150x150/4CD964/fff"/>
				   			<p class="mod-info">名字名字名字名字名字名字字名字名字名字名字</p>
				   			<p class="mod-price">&yen;326</p>
				   		</li>
				   		<li>
				   			<img src="http://temp.im/150x150/4CD964/fff"/>
				   			<p class="mod-info">名字名字名字名字名字名字字名字名字名字名字</p>
				   			<p class="mod-price">&yen;326</p>
				   		</li>
				   		<li>
				   			<img src="http://temp.im/150x150/4CD964/fff"/>
				   			<p class="mod-info">名字名字名字名字名字名字字名字名字名字名字</p>
				   			<p class="mod-price">&yen;326</p>
				   		</li>
				   		<li>
				   			<img src="http://temp.im/150x150/4CD964/fff"/>
				   			<p class="mod-info">名字名字名字名字名字名字字名字名字名字名字</p>
				   			<p class="mod-price">&yen;326</p>
				   		</li>
				   		<li>
				   			<img src="http://temp.im/150x150/4CD964/fff"/>
				   			<p class="mod-info">名字名字名字名字名字名字字名字名字名字名字</p>
				   			<p class="mod-price">&yen;326</p>
				   		</li>
				   		<li>
				   			<img src="http://temp.im/150x150/4CD964/fff"/>
				   			<p class="mod-info">名字名字名字名字名字名字字名字名字名字名字</p>
				   			<p class="mod-price">&yen;326</p>
				   		</li>
				   	</ul>
			   	</div>
			   </div>
			</div>
			<!--E类似婚品-->
			
			<!--S商家描述-->
			<div class="shopwords-wrap mt30">
				<div class="comment-header">
					<h1 class="comment-header-h1">商家描述</h1>
				</div>
				<div class="section-detail">
					asdfasfd
				</div>
			</div>
			<!--E商家描述-->
			
			<!--S图文详情-->
			<div class="imgtexts-wrap mt30">
				<div class="comment-header">
					<h1 class="comment-header-h1">图文详情</h1>
				</div>
				<div class="section-detail">
					asdfasdf
				</div>
			</div>
			<!--E图文详情-->
			<!--S用户评价-->
			<div class="comment mt50">
				<div class="comment-header">
					<h1 class="comment-header-h1">用户评价</h1>
					<div class="comment-star">
						<div class="comment-star p30 clearfix">
							<p class="mod-bigtit fl mt15 mr20">用户评星</p>
							<div class="mod-star fl mt15"><i></i></div>
							<a href="" class="mod-btn fr ml20">我要预约</a>
							<a href="" class="mod-btn fr">我要评价</a>
						</div>
					</div>
				</div>
				<div class="comment-body">
					<div class="comment-body-shift">
						<ul>
							<li class="active">全部：(<span>12</span>)</li>
							<li>好评：(<span>12</span>)</li>
							<li>中评：(<span>0</span>)</li>
							<li>差评：(<span>0</span>)</li>
							<li>有图：(<span>2</span>)</li>
						</ul>
					</div>
					<div class="comment-body-infos">
						<div class="cbi-info clearfix">
							<div class="cbi-info-left fl tc">
								<img src="../img/online/110x110.png" />
								<p class="mod-info mt10">静静的美的</p>
							</div>
							<div class="cbi-info-right fr">
								<div class="mod-star"><i></i></div>
								<p class="comment-word">非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友。非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友</p>
								<div class="comment-imgs mt10">
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
								</div>
							</div>
						</div>
						<div class="cbi-info clearfix">
							<div class="cbi-info-left fl tc">
								<img src="../img/online/110x110.png" />
								<p class="mod-info mt10">静静的美的</p>
							</div>
							<div class="cbi-info-right fr">
								<div class="mod-star"><i></i></div>
								<p class="comment-word">非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友。非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友</p>
								<div class="comment-imgs mt10">
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
								</div>
							</div>
						</div>
						<div class="cbi-info clearfix">
							<div class="cbi-info-left fl tc">
								<img src="../img/online/110x110.png" />
								<p class="mod-info mt10">静静的美的</p>
							</div>
							<div class="cbi-info-right fr">
								<div class="mod-star"><i></i></div>
								<p class="comment-word">非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友。非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友</p>
								<div class="comment-imgs mt10">
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
								</div>
							</div>
						</div>
						<div class="cbi-info clearfix">
							<div class="cbi-info-left fl tc">
								<img src="../img/online/110x110.png" />
								<p class="mod-info mt10">静静的美的</p>
							</div>
							<div class="cbi-info-right fr">
								<div class="mod-star"><i></i></div>
								<p class="comment-word">非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友。非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友</p>
								<div class="comment-imgs mt10">
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
								</div>
							</div>
						</div>
						<div class="cbi-info clearfix">
							<div class="cbi-info-left fl tc">
								<img src="../img/online/110x110.png" />
								<p class="mod-info mt10">静静的美的</p>
							</div>
							<div class="cbi-info-right fr">
								<div class="mod-star"><i></i></div>
								<p class="comment-word">非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友。非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友非常感谢工作人缘的付出，婚礼现场很美，整体服务也很不错。会推荐给身边还没结婚的朋友</p>
								<div class="comment-imgs mt10">
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
									<img src="../img/online/130x90.png" />
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!--E用户评价-->
		</div>
		<!--脚部部分-->
		<div class="footer mt100">
		</div>
		<!--脚部部分-->
		<script src="../js/mod/jquery-1.9.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/mod/mod.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$("#input_num").keypress(function(event){
				return event.keyCode>=48&&event.keyCode<=57;
			})
			$(".select .select-part-wrap .select-part").click(function() {
				$(this).addClass("select-active").siblings().removeClass("select-active");
			})
		</script>
		<script type="text/javascript">
			/*分页类*/
			function Page(ele) {
				this.ele = ele; //传的json对象
				this.opageWrap = ele.opageWrap; //分页的对象 必传
				this.maxPage = ele.maxPage; //最大页数
				this.activePage = ele.activePage ? ele.activePage : 1; //现在的页数
				this.nextPage = this.activePage >= this.maxPage ? this.maxPage : this.activePage + 1; //下一页
				this.prePage = this.activePage <= 1 ? 1 : this.activePage - 1; //上一页
				this.showPage = ele.showPage ? ele.showPage : 4 //显示的页数
				this.startPage = 1; //开始的页数
				this.endPage = this.startPage + this.showPage - 1; //结束的页数
			}

			/*创建元素*/
			Page.prototype.creatElement = function() {
				/*创建元素*/
				var pageBtnWrap = this.opageWrap.querySelector(".page-btn-wrap");
				pageBtnWrap.innerHTML = ""; //清空
				for(var i = 0; i < this.maxPage; i++) {
					var pageBtn = document.createElement("span");
					pageBtn.className = "page-btn";
					pageBtn.innerText = i + 1;
					/*原网页默认的哪个类*/
					if(i == this.activePage - 1) {
						pageBtn.className = pageBtn.className + " active";
					}
					/*超出的隐藏掉*/
					if(i >= this.showPage) {
						pageBtn.style.display = "none";
					}
					pageBtnWrap.appendChild(pageBtn); //加入元素
				}
				/*为页数的点击添加事件*/
				var allPagebtn = this.opageWrap.querySelectorAll(".page-btn-wrap .page-btn"); //取得所有显示的页数
				var _this = this;
				for(var i = 0; i < allPagebtn.length; i++) {
					allPagebtn[i].index = i;
					allPagebtn[i].onclick = function() {
						allPagebtn[_this.activePage - 1].className = allPagebtn[_this.activePage - 1].className.replace("active", "");
						_this.activePage = this.index + 1;
						this.className = this.className + " active";
					}
				}
				/*为左右键添加点击事件*/
				var prePageBtn = this.opageWrap.querySelector(".opre-btn");
				prePageBtn.onclick = function() {
					if((_this.activePage - 1) > 0) {
						if(_this.startPage > 1) {
							allPagebtn[_this.startPage - 2].style.display = "inline-block";
							allPagebtn[_this.endPage - 1].style.display = "none";
							_this.startPage = _this.startPage - 1;
							_this.endPage = _this.engPage - 1;
						}
						allPagebtn[_this.activePage - 1].className = allPagebtn[_this.activePage - 1].className.replace("active", "");
						_this.activePage = _this.activePage - 1;
						allPagebtn[_this.activePage - 1].className = allPagebtn[_this.activePage - 1].className + " active";
					}
				}
				var nextPageBtn = this.opageWrap.querySelector(".onext-btn");
				nextPageBtn.onclick = function() {
					if((_this.activePage + 1) >= _this.showPage && (_this.activePage + 1) <= _this.maxPage) {
						console.log(_this.endPage);
						console.log(allPagebtn.length);

						allPagebtn[_this.startPage - 1].style.display = "none";
						allPagebtn[_this.endPage].style.display = "inline-block";

						_this.startPage = _this.startPage + 1;
						_this.endPage = (_this.endPage + 1 >= _this.maxPage) ? _this.maxPage : _this.endPage + 1;
						console.log(_this.endPage);
						allPagebtn[_this.activePage - 1].className = allPagebtn[_this.activePage - 1].className.replace("active", "");
						_this.activePage = _this.activePage + 1;
						allPagebtn[_this.activePage].className = allPagebtn[_this.activePage].className + " active";

					} else if(_this.activePage + 1 <= _this.showPage) {
						allPagebtn[_this.activePage - 1].className = allPagebtn[_this.activePage - 1].className.replace("active", "");
						_this.activePage = _this.activePage + 1;
						allPagebtn[_this.activePage - 1].className = allPagebtn[_this.activePage - 1].className + " active";
					}
				}
			}

			Page.prototype.init = function() {

			}
			var obj = $(".page-wrap").get(0);
			var page = new Page({
				opageWrap: obj, //
				maxPage: 10,
				showPage: 6
			});
			page.creatElement();
		</script>
	</body>

</html>